<?php

include 'inc/config.php';

session_start();

$page = (isset($_GET['page'])) ? $_GET['page'] : "login";

switch ($page) {
    case 'main' :
        include 'view/home_view.php';
        break;
    case 'dosen' :
        include 'view/dosen_gridview.php';
        break;
    case 'siswa' :
        include 'view/mhs_gridview.php';
        break;
    case 'matkul' :
        include 'view/matkul_gridview.php';
        break;
    case 'kuliah' :
        include 'view/kuliah_gridview.php';
        break;
    case 'peserta' :
        include 'view/peserta_gridview.php';
        break;
    case 'logoff' :
        include 'view/user_logoff.php';
        break;
    case 'login' :
    default : include 'view/user_login.php';
}
?>